/*
 * ScriptableAnalyzerNode.h
 *
 *  Created on: Oct 30, 2013
 *      Author: blackpc
 */

#ifndef SCRIPTABLEANALYZERNODE_H_
#define SCRIPTABLEANALYZERNODE_H_

#include <ros/ros.h>
#include <std_msgs/String.h>
#include <scriptable_analyzer/ScriptHost.h>

class ScriptableAnalyzerNode
{
public:

	ScriptableAnalyzerNode();
	~ScriptableAnalyzerNode();

	ScriptHost& getScriptHost() { return _scriptHost; }

private:
	ScriptHost _scriptHost;
	ros::Subscriber _scriptSubscriber;

	void onScriptMessage(const std_msgs::String::ConstPtr script);
};

#endif /* SCRIPTABLEANALYZERNODE_H_ */
